<?php
require_once '../../classes/includeAll_Layer2.php';


$net = filter_input(INPUT_POST,"net",FILTER_VALIDATE_IP);

if($net == null || $net == false || !$isAdmin)
{
  echo "false";
  exit();
}

require '../../resources/getConnection.php';
$config = new Config($connection);
if($config->deleteDHCPNet($net))
  echo "true";
else
  echo "false";
$connection->disconnectDB();